package com.cmwa.solution.sys.attach.entity;

import org.apache.commons.lang.StringUtils;
import org.apache.ibatis.type.Alias;

import com.cmwa.solution.base.entity.BaseVo;
import com.cmwa.solution.utils.cached.DictionaryCached;

@Alias("attachsVo")
public class AttachsVo extends BaseVo {
	
	private String attId;
	
	private String attName;
	
	private String attType;
	
	private String attSubType;
	
	private String attStat;
	
	private String resourceSign; //附件来源标识
	
	private String resourceSignName; //附件来源标识名称
	
	private String resourceId; //附件来源ID
	
	private String resourceType;//附件来源类型
	
	private String documentTypeId;//文档类型ID

	public String getAttId() {
		return attId;
	}

	public void setAttId(String attId) {
		this.attId = attId;
	}

	public String getAttName() {
		return attName;
	}

	public void setAttName(String attName) {
		this.attName = attName;
	}

	public String getAttType() {
		return attType;
	}

	public void setAttType(String attType) {
		this.attType = attType;
	}

	public String getAttSubType() {
		return attSubType;
	}

	public void setAttSubType(String attSubType) {
		this.attSubType = attSubType;
	}

	public String getAttStat() {
		return attStat;
	}

	public void setAttStat(String attStat) {
		this.attStat = attStat;
	}

	public String getResourceSign() {
		return resourceSign;
	}

	public void setResourceSign(String resourceSign) {
		this.resourceSign = resourceSign;
	}

	public String getResourceSignName() {
		if (StringUtils.isNotEmpty(resourceSign)) {
			return DictionaryCached.getInstance().getDictionaryName(
					"ATTACH_SOURCE_SIGN",
					"ATTACH_SOURCE_SIGN",
					"ATTACH_SOURCE_SIGN", resourceSign);
		}
		return resourceSignName;
	}

	public void setResourceSignName(String resourceSignName) {
		this.resourceSignName = resourceSignName;
	}

	public String getResourceId() {
		return resourceId;
	}

	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getDocumentTypeId() {
		return documentTypeId;
	}

	public void setDocumentTypeId(String documentTypeId) {
		this.documentTypeId = documentTypeId;
	}
}
